package com.neutech.util;

import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;

public class ImageUtil {
    public ImageUtil() {
    }
    public static Image getImage(String imagePath){
        URL url = ImageUtil.class.getClassLoader().getResource(imagePath);
        BufferedImage image = null;
        try {
            image = ImageIO.read(url);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return image;
    }
}
